package com.atguigu.gulimall.product.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * @Author:葛鑫
 * @CreateTime:2022/11/4 16:41:12
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 二级分类vo
 */
public class Catelog2Vo {
    /**
     * 一级父分类id
     */
    private String catalog1Id;
    /**
     * 三级子分类id
     */
    private List <Catelog3Vo> catalog3List;
    private String id;
    private String name;


    /**
     * 三级分类vo
     */
    @Data
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Catelog3Vo {
        /**
         * 二级父分类id
         */
        private String catalog2Id;

        private String id;
        private String name;
    }

}
